package com.shanzmoo.stm.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.stm.entity.StmSysRoleEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 仓储用户系统角色 更新对象
 *
 * @author Gzhao 2021-03-10
 */
@Data
@ApiModel("仓储用户系统角色-更新对象")
public class StmSysRoleUpdateDTO extends StmSysRoleSaveDTO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer roleId;

    @Override
    public StmSysRoleEntity convertEntity() {
        StmSysRoleEntity target = new StmSysRoleEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
